
package org.apache.solr.core;

import java.io.File;
import java.io.IOException;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;

/**
 * Directory provider which mimics original Solr
 * {@link org.apache.lucene.store.FSDirectory} based behavior.
 *
 */
public class StandardDirectoryFactory extends CachingDirectoryFactory {

    @Override
    protected Directory create(String path) throws IOException {
        return FSDirectory.open(new File(path));
    }
}
